package aop.bean;

import aop.annotation.Custom;

public class Cat {
    private String name;
    private Integer age;


    public String getName() {
        System.out.println("Cat.getName");
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Cat{" + "name='" + name + '\'' + ", age=" + age + '}';
    }

    public Integer getAge() {
        System.out.println("Cat.getAge");
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void printThrowException(){
        System.out.println("Cat.printThrowException");
        throw new IllegalArgumentException();
    }
}
